-
Notifications
You must be signed in to change notification settings - Fork 561
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: unused exports linter and fixing #2130
Conversation
37bd45f
to
320fc5d
Compare
c3f6c74
to
e3cbb18
Compare
@@ -1,6 +1,7 @@ | |||
const Configstore = require('configstore'); | |||
const pkg = require(__dirname + '/../../package.json'); | |||
|
|||
// eslint-disable-next-line import/no-unused-modules |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Running into the following bug which was fixed in [email protected]
if we don't export it: microsoft/TypeScript#40718
@@ -45,6 +45,7 @@ export class TestLimitReachedError extends CustomError { | |||
|
|||
// Sub-interface of FormattedResult that we really only use to make test | |||
// fixtures easier to create. | |||
// eslint-disable-next-line import/no-unused-modules |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Running into the following bug which was fixed in [email protected]
if we don't export it: microsoft/TypeScript#40718
@@ -31,6 +31,7 @@ const simpleGradleGraph = depGraphLib.createFromJSON({ | |||
}, | |||
}); | |||
|
|||
// eslint-disable-next-line import/no-unused-modules |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Flaky test is temporarily disabled/commented out, so disabling the rule for this export.
e3cbb18
to
6d20461
Compare
6d20461
to
9918857
Compare
Closing due to age. Feel free to re-open if it's still active. |
What does this PR do?
This PR adds a linter for unused exports, which ensures that once we stop using an export we'll be notified.
Where should the reviewer start?